Secure socket layer (SSL)

Features of SSL:

  1. Authenticate the server to the client.
  2. Authenticate client to the server (optional).
  3. Select join cryptographic algorithms generate shared secret keys.
  4. Built a protected connection to secure TCP/UDP connections.


Phases of SSL:

  1. Hello messages are exchanged to negotiate parameters including authentication and encryption algorithm.
  2. One way or two way authentication between client and server where a pre master key is sent by the client using public key of server to start protecting the session.
  3. The master key is calculated and the cipher suite is authenticated.


SSL Handshake:+

Datagram Transport Layer Security (DTLS):
  
                                                              
  1. Sequence number: sequence number is included for each packet sent between client and server
  2. EPOCH: This field is used to differentiate between the conversations by using the same sequence number.

SSL/TLS record header:
  

         CONTENT TYPE
 

                         VERSION

                LENGTH

        MAJOR

       MINOR
 
   
                              ENCRYPTED PROTOCOL MESSAGE
                                                         MAC
                                                 PADDING (variable)
--------------------------------------------4 Bytes------------------------------------------------
  
  1. Context:   handshake:22, CCS:20 Application:23 Alert:21
  2. Version:   SSL: 3.0 & 3.1, TLS: 1.0.
  3. Length:    length of this record.
  4. Encapsulated protocol message: carries application data sent between client and server during a conversation.
After authentication, and hashing have been negotiated this field will be encrypted.
  
  1. MAC: mac calculated for the application data held is encapsulated protocol message.
  2. Padding: used alongside MAC protocols that operate as block cipher to pad the message length to a even size block.

SSL modes:

Cisco Secure Desktop (CSD)
  

Configuration

There are 3 components in SSL:
  1. Gateway: it defines basic network and cryptographic settings of the SSL VPN server used by the gateway.
  2. Context: it defines common building blocks used in user policies and the authentication methods to authenticate remote user.
  3. Policy groups: it defines sets of configuration and aaa settings that are applied to users.

Steps to configure in SSL for Router:
  1. Self-signed certificate/identity certificate
  2. Gateway: (IP add, port, http redirect, encryption algorithm, hostname, trust point).
  3. Context: (AAA authentication method, AAA authentication domain, URL-list, port forward list, NBNS-net bios name server, port customization, gateway CSD, default policy group).
  4. Policy group and make one policy group as default policy group as per context.( functions, SVC configuration, timeout, URL-list, port forward list, NBNS list)
webvpn.pdf